package nccloud.impl.pub.erm.sqd;

import com.alibaba.fastjson.JSONObject;

public class CwgxSqdExecute {

	public Object execute(JSONObject reqJson)throws Exception {
		String action = (String) reqJson.get("action");
		if(action.equalsIgnoreCase("save")) {
			return new CwgxSqdSaveProcessor().doAction(reqJson);
		}else if(action.equalsIgnoreCase("update")){
			return new CwgxSqdUpdateProcessor().doAction(reqJson);
		}else if(action.equalsIgnoreCase("delete")) {
			return new CwgxSqdDeleteProcessor().doAction(reqJson);
		}
		return null;
		
	}
}
